<#include "../common/app.ftl">
<@common "${title!}">
<!-- Top Navbar-->
<div class="navbar">
  <div class="navbar-inner">
    <div class="left"><a href="#" id="confirmBackHome" class="link"> <i class="fa fa-angle-left"></i></a></div>
    <div class="center sliding">订单确认</div>
    </div>
  </div>
</div>
<div class="pages">
  <!-- Page, data-page contains page name-->
  <div data-page="order-confirm" class="page">
    <!-- Scrollable page content-->
    <div class="page-content">
      
        <div class="order-sure">
                <div class="person-msg">
                    <a  id = "shdzTz" data-ignore-cache="true" name ="${basepath}/phone/address/choose?addressId=${address.id!}&token=${token!}" href="javascript:void(0);"  style="display:block;">
                    <div class="box fn-clear">
                        <div class="msg-txt">
                        	<input type="hidden" id="baseUid" value="${baseUserId!}"/>
                            <div class="line-txt">
                            	<#if address??>
                            		<span class="name">${address.name!}</span>
                            		<span class="phone-num">${address.mobile!}</span>
                            		<#if address.isdefault?? && address.isdefault=="y"><i>默认</i></#if>
                            		<P>${address.address!}</P>
                            	</#if>
                        	</div>
                            <input type="hidden" id="addressStr" value="<#if address??>${address.address!}</#if>"/>
                            <input type="hidden" id="orderShipId" value="${e.ordership.id!""}"/>
                        </div>
                        <span href="javascript:" class="go-look"><img src="${staticpath}/phone/images/go-look.png"></span>
                    </div>
                    </a>
                </div>
                <div class="line-black"></div>
                <#if e??>
	                <#if e.orders??>
	                	<#list e.orders as item>
			                <div class="order-goods">
			                    <div class="box fn-clear">
			                        <a href="${basepath}/phone/home/detail?productId=${item.productID!}">
			                            <div class="goods-img">
			                                <a href="${systemSetting().imageRootPath}${item!}" target="_blank">
		                                        <img style="max-width: 100px;max-height: 100px;" alt="" src="${systemSetting().imageRootPath}${item.picture!}">
		                                    </a>
			                            </div>
			                            <div class="goods-txt">
			                                <p>${item.productName!}</p>
			                                <div class="copy fn-clear">
			                                    <span>${item.cbs!'卖家没有提供出版社'}</span>
			                                    <i>X${item.productNumber!""}</i>
			                                </div>
			                                <strong><b>¥</b>${item.price!}</strong>
			                            </div>
			                        </a>
			                    </div>
			                </div>
			                <div class="line-black"></div>
		                </#list>
	                </#if>
                <!--
                <div class="order-goods">
                    <div class="box fn-clear">
                        <a href="#">
                            <div class="goods-img">
                                <img src="">
                            </div>
                            <div class="goods-txt">
                                <p>水浒传</p>
                                <div class="copy fn-clear">
                                    <span>内蒙古出版社</span>
                                    <i>X1</i>
                                </div>
                                <strong><b>¥</b>6388.00</strong>
                            </div>
                        </a>
                    </div>
                </div>
                -->
                <div class="line-black"></div>
                <div class="order-inf">
                    <div class="box">
                        <div class="dis-mode fn-clear">
                            <h3>配送方式：${e.expressName!""}</h3>
                            <span>${e.expressName!""}：${e.fee!}元</span>
                        </div>
                        <div class="dis-mode fn-clear">
                            <h3>购买优惠：</h3>
                            <span>订单满100.00元免邮费</span>
                        </div>
                        <div class="dis-mode fn-clear buyers-mes">
                            <h3>买家留言：</h3>
                            <input type="text" id="mjCmment" placeholder="选填" name="buyer-message" value="<#if mjCmment??> ${mjCmment.content!}</#if>"/>
                        </div>
                    </div>
                </div>
                
                <div class="sure-payment">
                    <div class="money-total">
                        <strong>合计：￥${e.amount!""}</strong>
                        <span class="to">共计：${e.quantity!""}件</span>
                    </div>
                    <!--
                    <a class="payment-btn" id="paymentBtn" name="${e.id!}" href="${basepath!}/phone/order/result?orderId=${e.id}&orderShipId=${e.ordership.id!""}&addressId=${address.id!}">
                      		  确认支付(${e.quantity!""})
                    </a>
                    -->
                    <a class="payment-btn" id="paymentBtn" name="${e.id!}" href="#">
                      		  确认支付(${e.quantity!""})
                    </a>
                </div>
               </#if>
             </div>

    </div>
  </div>
</div>

</@common>